import axios from '@/libs/api.request'

export class BusinessDocumentApi {
  //  获取列表数据
  static getList (params) {
    return axios.request({
      url: '/BusinessDocument/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取数据详情
  static getDocument (params) {
    return axios.request({
      url: '/BusinessDocument/GetDocument',
      method: 'post',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 新增编辑数据
  static postDocument (params) {
    return axios.request({
      url: '/BusinessDocument/PostDocument',
      method: 'post',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 删除文档数据
  static deleteDocument (params) {
    return axios.request({
      url: '/BusinessDocument/DeleteDocument',
      method: 'DELETE',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 导出
  static export (params) {
    return axios.request({
      url: '/BusinessDocument/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
